<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<h1 class="entry-title" align="center" style="font-size: 13pt">ค้นหาห้องเช่า</h1>
<div class="box" style="text-align: left;">
	<table width="80%" cellspacing="0" cellpadding="0" border="0">
		<tbody>
			<tr>
				<td valign="top" align="center"><table width="550" cellspacing="0"
						cellpadding="0" border="0">
						<tbody>
							<tr>
								<td width="13">&nbsp;</td>
								<td width="537"><table width="100%" cellspacing="0"
										cellpadding="0" border="0">
										<tbody>
											<tr>
												<td width="27%"><table width="100%" cellspacing="2"
														cellpadding="0" border="0">
														<form onsubmit="return checksearch();"
															action="h_searchnew1.php" method="post"
															name="searchtopic"></form>
														<tbody>
															<tr>
																<td valign="bottom" height="27"><div align="center"
																		class="fixtext4">ห้องพักตามเขต</div></td>
															</tr>
															<tr>
																<td><center>
																		<select name="bkkzone_id" style="width: 150px;">
																			<option value="0">-- เลือกหนึ่งรายการ --</option>
																			<?php
																			foreach ( $bkkzones as $bkkz) {
																				echo "<option value=\"$bkkz->id\">$bkkz->name</option>";
																			}?>
																		</select>
																	</center></td>
															</tr>
															<tr>
																<td><center>
																		<select style="WIDTH: 100%" id="price" name="price">
																			<option selected="selected" value="">:: ทุกราคา ::</option>
																			<option value="2000">ต่ำกว่า 2,000 บาท</option>
																			<option value="3000">2,000-3,000 บาท</option>
																			<option value="4000">3,000 บาทขึ้นไป</option>
																		</select>
																	</center></td>
															</tr>
															<tr>
																<td><center>
																		<select name="category_id" style="width: 150px;">
																		<?php
																		foreach ( $categorys as $obj) {
																			echo "<option value=\"$obj->id\">$obj->name</option>";
																		}?>
																		</select>
																	</center></td>
															</tr>
															<tr>
																<td><center>
																		<input type="submit" value="Search" id="Search1"
																			name="Search1">
																	</center></td>
															</tr>
														</tbody>

													</table></td>
												<td width="44%"><table width="100%" cellspacing="2"
														cellpadding="0" border="0">
														<tbody>
															<form onsubmit="return checksearch();"
																action="h_searchnew2.php" method="post"
																name="searchtopic"></form>
															<tr>
																<td valign="bottom" height="27"><div align="center"
																		class="fixtext4">ห้องพักตามสถานศึกษา</div></td>
															</tr>
															<tr>
																<td><center>
																		<select name="university_id" style="width: 150px;">
																			<option value="0">-- เลือกหนึ่งรายการ --</option>
																			<?php
																			foreach ( $universitys as $uvsty) {
																				echo "<option value=\"$uvsty->id\">$uvsty->name</option>";
																			}?>
																	
																	</center></td>
															</tr>
															<tr>
																<td><center>
																		<select style="WIDTH: 100%" id="price" name="price">
																			<option selected="selected" value="">:: ทุกราคา ::</option>
																			<option value="2000">ต่ำกว่า 2,000 บาท</option>
																			<option value="3000">2,000-3,000 บาท</option>
																			<option value="4000">3,000 บาทขึ้นไป</option>
																		</select>
																	</center></td>
															</tr>
															<tr>
																<td><center>
																		<select name="category_id" style="width: 150px;">
																		<?php
																		foreach ( $categorys as $obj) {
																			echo "<option value=\"$obj->id\">$obj->name</option>";
																		}?>
																		</select>
																	</center></td>
															</tr>
															<tr>
																<td><center>
																		<input type="submit" value="Search" id="Search2"
																			name="Search2"> <input type="hidden" value="school"
																			id="status2" name="status22">
																	</center></td>
															</tr>

														</tbody>

													</table></td>
												<td width="29%"><table width="100%" cellspacing="2"
														cellpadding="0" border="0">
														<tbody>
															<form onsubmit="return checksearch();"
																action="h_searchnew3.php" method="post"
																name="searchtopic"></form>
															<tr>
																<td valign="bottom" height="27"><div align="center"
																		class="fixtext4">ห้องพักตามจังหวัด</div></td>
															</tr>
															<tr>
																<td><center>
																		<select name="province_id" style="width: 150px;">
																			<option value="0">-- เลือกหนึ่งรายการ --</option>
																			<?php
																			foreach ( $provinces as $pv) {
																				echo "<option value=\"$pv->id\">$pv->name</option>";
																			}?>
																		</select>
																	</center></td>
															</tr>
															<tr>
																<td><center>
																		<select style="WIDTH: 100%" id="price" name="price">
																			<option selected="selected" value="">:: ทุกราคา ::</option>
																			<option value="2000">ต่ำกว่า 2,000 บาท</option>
																			<option value="3000">2,000-3,000 บาท</option>
																			<option value="4000">3,000 บาทขึ้นไป</option>
																		</select>
																	</center></td>
															</tr>
															<tr>
																<td><center>
																		<select name="category_id" style="width: 150px;">
																		<?php
																		foreach ( $categorys as $obj) {
																			echo "<option value=\"$obj->id\">$obj->name</option>";
																		}?>
																		</select>
																	</center></td>
															</tr>
															<tr>
																<td><center>
																		<input type="submit" value="Search" id="submit25"
																			name="Search3"> <input type="hidden" value="province"
																			id="status2" name="status22">
																	</center></td>
															</tr>
														</tbody>

													</table></td>
											</tr>
										</tbody>
									</table>
									<table width="500" cellspacing="0" cellpadding="0" border="0">
										<tbody>
											<tr>
												<td height="5"></td>
											</tr>
										</tbody>
									</table></td>
							</tr>
						</tbody>
					</table></td>
			</tr>
		</tbody>
	</table>
</div>
